package com.hwy.widget.float_window

import android.content.Context
import android.util.AttributeSet
import android.widget.FrameLayout
import androidx.recyclerview.widget.RecyclerView
import com.hwy.widget.R

/**
 * =======================================
 * 作者: hewenyu
 * 日期: 2022/3/14 23:26
 * 说明:
 * =======================================
 */
abstract class AbstractFloatListLayout @JvmOverloads constructor(
    context: Context, attrs: AttributeSet? = null
) : FrameLayout(context, attrs) {

    var recyclerView: RecyclerView? = null

    override fun onFinishInflate() {
        super.onFinishInflate()
        recyclerView = findViewById(R.id.recycler_view)
        initRecyclerView(recyclerView)
    }

    protected abstract fun initRecyclerView(recyclerView: RecyclerView?)

}